import React from 'react';
import {  useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next";
import I18nBtn from "@/i18n/i18nBtn";
import {Helmet, HelmetProvider} from "react-helmet-async";
import {BaiduTrackPageview, GetBaidu} from "@/utils/BaiDuTongJi/GetBaidu";

const Test = (props)=> {
    //加载百度统计代码
    GetBaidu(props);
    //百度统计页面url
    BaiduTrackPageview(window.base.config.path+'test')
    let navigate = useNavigate();
    const {t,i18n} = useTranslation();
    const handleClickToHome = () =>{
        console.log(window.base.config.path)
        navigate(window.base.config.path)
    }
    return(
        <React.Fragment>
            <HelmetProvider>
                <Helmet>
                    <title>nest1二级关于我们-中智关爱通</title>
                    <meta name="keywords" content="二级企业福利平台,企业福利定制,节日福利礼品,员工礼品供应商" />
                    <meta name="description" content="二级关爱通是中智旗下品牌，央企服务保证，为企业提供完整员工福利解决方案、企业福利平台定制、节日福利、员工礼品、员工激励、员工体检，以及一站式员工弹性福利平台。关爱通服务客户超21000家，覆盖员工近700万人。" />
                </Helmet>
            </HelmetProvider>
            <div>{t("Pc.erji")}</div>
            <I18nBtn i18n={i18n}/>
            <button
                onClick={handleClickToHome}
            >
                返回
            </button>
        </React.Fragment>
    )
}
export default Test